import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import Antd, { message } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import * as antdIcons from '@ant-design/icons-vue'
import i18n from './language/i18n'

const app = createApp(App)

const icons: any = antdIcons
for (const key in icons) {
  app.component(key, icons[key])
}

app.config.globalProperties.$message = message
app.config.globalProperties.$icons = antdIcons
app.use(router)
app.use(Antd)
app.use(i18n)

app.mount('#app')
